<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
  String xm = this.getServletContext().getInitParameter("path");
	String path1 = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+"/"+xm;
%>   
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>万达营销流程管理系统</title>
<link href="<%=path1%>/qt/css/css.css"
	rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=path1%>/qt/js/jquery-1.7.2.js"></script>
<script type="text/javascript" src="<%=path1%>/qt/js/ie6png.js"></script>
<script type="text/javascript">
	DD_belatedPNG.fix('div,ul,li,a,p,img,body,dl,dt,dd');
</script>
<%
   String[] s = request.getParameterValues("checkbox1");
 //  System.out.println("sssssssssss:"+s.length);
   session.setAttribute("checktest", s);
 //  request.setAttribute("check", s); 
  // System.out.println("addOpeningRooms.jsp:"+request.getAttribute("check"));
%>
<script type="text/javascript">
    function danji(){
    	var check=document.getElementsByName("checkbox1");
    	var bool=false;
    	for(var i=0;i<check.length;i++){
    		if(check[i].checked==true){
    			bool=true;
    		}
    	}
    	if(bool==true){
    		var form3=document.getElementById("form3");
    		form3.submit();
    	}else{
    		alert("请选择提交的房间");
    	}
    }

</script> 
 <script type="text/javascript">
    function selectall(){
    	var checklist=document.getElementsByName("checkbox1");
    	 if(document.getElementById("checkbox").checked){
    		for(var i=0;i<checklist.length;i++){
    			checklist[i].checked=1;
        	}
    	}else{
    		for(var j=0;j<checklist.length;j++){
    			checklist[i].checked=0;
    	     }
    	}
    }    
</script>
<script type="text/javascript">
	function MM_jumpMenu(targ, selObj, restore) { //v3.0
		eval(targ + ".location='" + selObj.options[selObj.selectedIndex].value
				+ "'");
		if (restore)
			selObj.selectedIndex = 0;
	}
</script>
 <script type="text/javascript">
 function aa(){
        //alert("恭喜您，操作成功！");
       window.location.href=document.referrer; 
 } 
 
 function bb(){
	 var check = document.getElementsByName("checkbox1");
	 var bool = false;
	 for(var i=0;i<check.length;i++){
		 if(check[i].checked==true){
			 bool=true;
		 }
	 }
	 if(bool==true){
		 window.location.href="<%=path1%>/qt/zheKou.jsp";
	 }else{
		 alert("请选择要提交的房间");
	 }
	
 }
</script>

</head>
<body>
<!-- 跳的房间的select.do-->
<form action="Export.do" method="post" id="form3" >
	<div class="yboxwidth boxcenter ybox01">
		<div class="ybox09">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td class="ybox10td1"><a href="#"><img
							src="<%=path1%>/qt/images/op8_1.gif" width="28" height="54" /></a></td>
					<td><table border="0" cellspacing="0" cellpadding="0">
							<tr valign="top">
								<td class="ybox11td1"></td>
								<td class="ybox11td2"><a href="<%=path1%>/qt/addOpening_Report.jsp">1、填写基本信息</a></td>
								<td class="ybox11td3"></td>
								<td class="ybox11td2"><a href="javascript:window.history.go(-1)">2、选择房间</a></td>
								<td class="ybox11td8"></td>
								<td class="ybox11td6"><a href="#">3、导入价格</a></td>
								<td class="ybox11td7"></td>
								<td class="ybox11td2"><a href="<%=path1%>/qt/zheKou.jsp">4、引入折扣方案</a></td>
								<td class="ybox11td3"></td>
								<td class="ybox11td2"><a href="<%=path1%>/ht/pay_type/selectAllss.do">5、引入付款方式</a></td>
								<td class="ybox11td3"></td>
								<td class="ybox11td2"><a href="<%=path1%>/qt/yuLan.jsp">6、预览并提交</a></td>
								<td class="ybox11td4"></td>
							</tr>
						</table></td>
					<td class="ybox10td1"><a href="#"><img
							src="<%=path1%>/qt/images/op8_2.gif" width="28" height="54" /></a></td>
				</tr>
			</table>
		</div>
		<div class="ybox02">
			<table width="100%" border="0" cellspacing="0" cellpadding="0"
				class="margb4">
				<tr>
					<td class="ybox03td1"></td>
					<td class="ybox03td2"></td>
					<td class="ybox03td3"></td>
				</tr>
				<tr>
					<td class="ybox03td4"></td>
					<td class="ybox03td5"><div class="ybox05 margb8">
							<dl>
								<dt>
									<strong>【注】</strong>1、点击"下载价格模板"，填写房间价格。<br />
									2、点击"导入价格明细"，导入房间价格。
								</dt>
							</dl>
						</div>
						<div class="ybox07 margb2">
            <dl>
              <table border="0" cellspacing="0" cellpadding="0" class="ybox07table">
                <tr align="left">
                  <td class="ybox07td1"><img src="<%=path1%>/qt/images/op4_4.gif" /></td>
                  <td><a onclick="danji();">下载价格模板</a></td>
                  <td class="ybox07td2"><img src="<%=path1%>/qt/images/op4_0.gif" /></td>
                  <td class="ybox07td1"><img src="<%=path1%>/qt/images/op4_5.gif" /></td>
                  <td><a href="updateImpl.do">导入价格明细</a></td>
                  <td class="ybox07td2"><img src="<%=path1%>/qt/images/op4_0.gif"  /></td>
                </tr>
              </table>
            </dl>
          </div>
					
						<table width="100%" border="0" cellpadding="0" cellspacing="1"
							class="ybox06table">
							<tr>
								<td class="ybox06td01"><input type="checkbox"
									name="checkbox" id="checkbox" onclick="selectall()"/></td>
								<td width="10" class="ybox06td01">序号</td>
								<td class="ybox06td01">所属项目</td>
								<td class="ybox06td01">房间房号</td>
								<td class="ybox06td01">建筑面积</td>
								<td class="ybox06td01">套内面积</td>
								<td class="ybox06td01">计价方式</td>
								<td class="ybox06td01">建筑面积单价</td>
								<td class="ybox06td01">套内面积单价</td>
								
								<td class="ybox06td01">标准总价</td>
							</tr>
							<c:forEach items="${rooms}" var="b" varStatus="s">
								<tr>
									<td class="ybox06td02wcenter"><input type="checkbox"
										name="checkbox1" id="checkbox1" value="${b.room_id}" /></td>
									<td class="ybox06td02wcenter">${s.count}</td>
									<td class="ybox06td02wleft">${b.project.project_name}</td>
									<td class="ybox06td02wleft">${b.room_code }</td>
									<td class="ybox06td02wcenter">${b.units }</td>
                                    <td class="ybox06td02wcenter">${b.inners }</td>
                                    <td class="ybox06td02wcenter">${price_type}</td>
									<td class="ybox06td02wcenter">${b.unit_price}</td>
     
                                    <td class="ybox06td02wcenter">${b.inner_price }</td>
									<td class="ybox06td02wcenter">${b.standard_price}</td>

								</tr>
							</c:forEach>
						</table>
						<div class="nums boxcenter black12">
							<a href="#" class="hovera">首 页</a><a href="#">上一页</a><a href="#">下一页</a><a
								href="#">尾 页</a>&nbsp;&nbsp;&nbsp;第1/3页&nbsp;&nbsp;&nbsp;每页&nbsp;
							<input name="textfield3" type="text" id="textfield" size="2" />
							&nbsp;条/共25条&nbsp;&nbsp;转到&nbsp; <input name="textfield3"
								type="text" id="textfield" size="2" /> &nbsp;页<a href="#">跳
								转</a>
						</div></td>
					<td class="ybox03td6"></td>
				</tr>
				<tr>
					<td class="ybox03td7"></td>
					<td class="ybox03td8"></td>
					<td class="ybox03td9"></td>
				</tr>
			</table>
			<table width="380" border="0" align="center" cellpadding="0"
				cellspacing="0">
				<tr>
					<td height="60" align="center"><a onclick="aa();"><img
							src="<%=path1%>/qt/images/botton01.gif" width="95" height="34" /></a></td>
					<td align="center"><a onclick="bb();"><img
							src="<%=path1%>/qt/images/botton02.gif" width="95" height="34" /></a></td>
				</tr>
			</table>
		</div>
	</div>
</form>
</body>
</html>
